﻿using Application.Models;
using Shared.Http.UserAgentParser;

namespace Application.Roles.Interfaces.Repositories
{
    public interface IRoleReadRepository
    {
        /// <summary>
        /// 通过id获取角色信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<IReadOnlyList<RoleDto>> GetRoleByIds(IEnumerable<Guid> id);

        /// <summary>
        /// 分页获取角色信息
        /// </summary>
        /// <param name="pageInfo"></param>
        /// <returns></returns>
        public Task<IReadOnlyList<RoleDto>> GetRoles(PageInfo pageInfo);
    }
}
